package com.example.mybatis_test.controller;


import com.example.mybatis_test.service.StuService;
import com.example.mybatis_test.util.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ican
 * @since 2023-06-08
 */
@RestController
@RequestMapping("/stu")
public class StuController {


    @Resource
    private StuService stuService;

    /**
     * @api {GET} /stu/selectOneToOne selectOneToOne
     * @apiVersion 1.0.0
     * @apiGroup StuController
     * @apiName selectOneToOne
     * @apiSuccess (响应结果) {Object} response
     * @apiSuccessExample 响应结果示例
     * {}
     */
    @GetMapping("/selectOneToOne")
    public R selectOneToOne(){
        return stuService.selectOneToOne();
    }
}

